﻿using System.Configuration;

namespace _Ado.NET调用存储并使用OutPut
{
    public class WebConfigUtil
    {
        public static string DefaultConnString = ConfigurationManager.ConnectionStrings["Default"].ToString();

        public static string GetConnString(string connKey)
        {
            string connString = ConfigurationManager.ConnectionStrings[connKey].ToString();
            return connString;
        }
    }
}